﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Hotnet.Web.Utility.TagControl>" %>

<div class="TCdivTag">
	<ul>
		<% for (int i = 0; i < Model.Tags.Count(); i++)
		
	{%>
		<li>
			<a href="javascript:tc_clickTag('<%=Model.Tags[i].TagName %>')" class='<%=i<3?"hotTop":(i<Model.Tags.Count()-3?"hotMiddle":"hotTail") %>' ><%=Model.Tags[i].TagName %></a>
		</li>
		
	<%} %>
	</ul>
</div>

<style type="text/css">
	
	.TCdivTag
	{
		
	}
	
	.hotTop
	{
		text-decoration:none;
		font-size:16px;
		color:Red;
		font-weight:bold;
	}
	.hotMiddle
	{
		font-size:14px;
		color: rgb(255, 0, 153);
		text-decoration:none;
	}
	
	.hotTail
	{
		
		color:Gray;
		text-decoration:none;
		font-size:16px;
	}
	

	
	.TCdivTag li
	{
		text-align:center;
		vertical-align:middle;
		list-style-type:none;
		margin:0;
		padding:0;
		float:left;
	}
	.TCdivTag ul
	{
		margin:7px 0px;
		float:left;
		
	}
	
</style>

<script type="text/javascript">

	var href = '<%= Model.Url %>';
	var isOpen = '<%=Model.IsOpenNewPage %>';
	function tc_clickTag(name) {
		if (isOpen == null || isOpen == "False")
			window.location.href = href + "?tagName=" + escape(name);
		else
			window.open(href + "?tagName=" + escape(name));
	}

</script>
